<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : mysyle1.xsl
    Created on : 7 de Março de 2012, 19:37
    Author     : 30840971
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
     
    <!-- TODO customize transformation rules 
         syntax recommendation http://www.w3.org/TR/xslt 
    -->
    <xsl:template match="/">
        <html>
            <head>
              
                <title>mysyle1.xsl</title>
            </head>
            <body>
                <h1>Interface de msg</h1>
                <form action="msgServlet1" method="post" >
                    <input type="text" name="titulo"/>
                    <input type="text" name="texto"/>
                    <input type="submit" value="submit" />
                </form>
                <table border="1">
                    <tr bgcolor="#9acd32">
                        <th>Title</th>
                        <th>Artist</th>
                    </tr>
                    <xsl:for-each select="Segura/Mensagem">
                        <tr>
                            <td  bgcolor="FFF000">
                                <xsl:value-of select="titulo"/>
                            </td>
                            <td>
                                <xsl:value-of select="from"/>
                            </td>
                        </tr>
                    
                    </xsl:for-each>
                </table>
            </body>
        </html>
    </xsl:template>

</xsl:stylesheet>
